package com.insight.dto.collection;

import com.insight.common.enums.CollectionType;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 采集任务创建请求DTO
 *
 * @author Insight Team
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CollectionTaskCreateRequest {

    /**
     * 数据源ID
     */
    @NotNull(message = "数据源ID不能为空")
    private Long datasourceId;

    /**
     * 采集类型
     */
    @NotNull(message = "采集类型不能为空")
    private CollectionType type;

    /**
     * 表名过滤正则表达式(可选)
     */
    private String tableFilter;
}
